Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed tic tac toe #11

Open
wants to merge 4 commits into
base: th/master
Choose a base branch
from
Open

Conversation

TammyHer
Copy link

Please come and play tic tac toe!
The game is played on a 3x3 grid.
Each player, in turn, selects one available grid spot
Upon selecting (clicking), the spot is marked as belonging to that player
If a player claims three spots in a row (horizontally, vertically, or diagonally), they win!
I completed all the requirements, and would love to DRY my code more.

@kariabancroft kariabancroft self-assigned this Feb 9, 2016
@kariabancroft
Copy link

Don't forget to use commits even if you're working on a project by yourself!


}
TicTacToe.prototype.CheckRow = function(col, row, sign) {
if (row === 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation of this conditional vs the {} that are associated with each condition do not seem to match up. Watch out for creating conditionals without the {} because this can cause unexpected behavior.

@kariabancroft
Copy link

I think you've done a nice job implementing the requirements, but I think there are a lot of opportunities for refactoring. I would love to see you do this refactor to simplify and consolidate your code. Let me know if you do this and would like me to take a look!

@TammyHer
Copy link
Author

I'll continue to work on it during this week and will let you know when I'm done so you can take another look. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants